import { Module } from '@nestjs/common'
import { MulterModule } from '@nestjs/platform-express'
import { MulterOptionsService } from '@/common/options'
import { UploadController } from './upload.controller'

@Module({
  imports: [
    MulterModule.registerAsync({
      useClass: MulterOptionsService
    })
  ],
  controllers: [UploadController]
})
export class UploadModule {}
